package lab2Exercise2;

public class TestQueue {
	
	public static void main(String[] args)
	{
		ArrayQueue<String> que = new ArrayQueue<String>(5);
		String one = new String("One");
		String two = new String("Two");
		String three = new String("Three");
		String four = new String("Four");
		que.enqueue(one);
		System.out.println(que.toString());
		que.enqueue(two);
		System.out.println(que.toString());
		que.enqueue(three);
		System.out.println(que.toString());
		que.enqueue(four);
		System.out.println(que.toString());
		/*ArrayListQueue<String> que1 = new ArrayListQueue<String>();
		que1.enqueue(one);
		que1.enqueue(two);
		que1.enqueue(three);
		que1.enqueue(four);
		que1.enqueue(one);
		System.out.println(que1.toString());
		que1.dequeue();
		System.out.println(que1.toString());
		que1.dequeue();
		System.out.println(que1.toString());
		que1.dequeue();
		System.out.println(que1.toString());
		que1.dequeue();
		System.out.println(que1.toString());
		que1.dequeue();
		System.out.println(que1.toString());
		que1.dequeue();
		System.out.println(que1.toString());
		
		//System.out.println(que.toString());*/
	}

}
